import mongoose from '../dbHelper';
import {defaultSchemaExtend, defaultSchemaOptions} from "../config/index";

const Schema = mongoose.Schema;

const DlyAdminRoleSchema = new Schema(Object.assign({
    name: {
        type: String,
        required: true
    },
    role_name: {
        type: String,
        required: true
    },
    menu_id: {
        type: Array
    }
 
}, defaultSchemaExtend), defaultSchemaOptions);

const DlyAdminRole = mongoose.model('DlyAdminRole', DlyAdminRoleSchema, 'DlyAdminRoles');

export default DlyAdminRole